UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212560#3840. 布朗运动(motion)AaronCompile Error//C++156b2024-10-19 11:30:092024-10-19 12:35:27

answer

#include<bits/stdc++.h>

signed main(){
    int n;
    cin>>n;
    if(n==2)
        cout<<"4/5";
    else
        cout<<"10/13";
    return 0;
}

Details

answer.code: In function 'int main()':
answer.code:5:5: error: 'cin' was not declared in this scope
     cin>>n;\x0d
     ^
answer.code:5:5: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/4.8/bits/stdc++.h:74:0,
                 from answer.code:1:
/usr/include/c++/4.8/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
answer.code:7:9: error: 'cout' was not declared in this scope
         cout<<"4/5";\x0d
  ...