QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#455994#5414. Stop, Yesterday Please No MoreaaaaaCompile Error//C++231.7kb2024-06-27 06:02:462024-06-27 06:02:47

Details

answer.code: In function ‘void solve()’:
answer.code:2:15: error: ‘cin’ was not declared in this scope
    2 |     int n,m,k;cin>>n>>m>>k;
      |               ^~~
answer.code:4:5: error: ‘string’ was not declared in this scope
    4 |     string s;cin>>s;
      |     ^~~~~~
answer.code:4:19: error: ‘s’ was not declared in this scope
    4 |     string s;cin>>s;
      |                   ^
answer.code:7:16: error: ‘max’ was not declared in this scope
    7 |             x1=max(1ll,x1-1);
      |                ^~~
answer.code:9:23: error: ‘cout’ was not declared in this scope
    9 |                 if(!k)cout<<n*m<<endl;
      |                       ^~~~
answer.code:9:34: error: ‘endl’ was not declared in this scope
    9 |                 if(!k)cout<<n*m<<endl;
      |                                  ^~~~
answer.code:10:22: error: ‘cout’ was not declared in this scope
   10 |                 else cout<<0<<endl;
      |                      ^~~~
answer.code:10:31: error: ‘endl’ was not declared in this scope
   10 |                 else cout<<0<<endl;
      |                               ^~~~
answer.code:16:23: error: ‘cout’ was not declared in this scope
   16 |                 if(!k)cout<<n*m<<endl;
      |                       ^~~~
answer.code:16:34: error: ‘endl’ was not declared in this scope
   16 |                 if(!k)cout<<n*m<<endl;
      |                                  ^~~~
answer.code:17:22: error: ‘cout’ was not declared in this scope
   17 |                 else cout<<0<<endl;
      |                      ^~~~
answer.code:17:31: error: ‘endl’ was not declared in this scope
   17 |                 else cout<<0<<endl;
      |                               ^~~~
answer.code:20:16: error: ‘min’ was not declared in this scope
   20 |             x1=min(n,x1+1);
      |                ^~~
answer.code:23:16: error: ‘max’ was not declared in this scope
   23 |             y1=max(1ll,y1-1);
      |                ^~~
answer.code:25:23: error: ‘cout’ was not declared in this scope
   25 |                 if(!k)cout<<n*m<<endl;
      |                       ^~~~
answer.code:25:34: error: ‘endl’ was not declared in this scope
   25 |                 if(!k)cout<<n*m<<endl;
      |                                  ^~~~
answer.code:26:22: error: ‘cout’ was not declared in this scope
   26 |                 else cout<<0<<endl;
      |                      ^~~~
answer.code:26:31: error: ‘endl’ was not declared in this scope
   26 |                 else cout<<0<<endl;
      |                               ^~~~
answer.code:32:23: error: ‘cout’ was not declared in this scope
   32 |                 if(!k)cout<<n*m<<endl;
      |                       ^~~~
answer.code:32:34: error: ‘endl’ was not declared in this scope
   32 |                 if(!k)cout<<n*m<<endl;
      |                                  ^~~~
answer.code:33:22: error: ‘cout’ was not declared in this scope
   33 |                 else cout<<0<<endl;
      |                      ^~~~
answer.code:33:31: error: ‘endl’ was not declared in this scope
   33 |                 else cout<<0<<endl;
      |                               ^~~~
answer.code:36:16: error: ‘min’ was not declared in this scope
   36 |             y1=min(m,y1+1);
      |                ^~~
answer.code:41:5: error: ‘memset’ was not declared in this scope
   41 |     memset(f,0,sizeof f);
      |     ^~~~~~
answer.code:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
  +++ |+#include <cstring>
    1 | void solve(){
answer.code:60:5: error: ‘cout’ was not declared in this scope
   60 |     cout<<ans<<endl;
      |     ^~~~
answer.code:60:16: error: ‘endl’ was not declared in this scope
   60 |     cout<<ans<<endl;
      |                ^~~~