| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 120320 | 陈冠樾 | 能否被3和5整除 | C++ | Compile Error | 0 MS | 0 KB | 155 | 2025-05-25 13:15:24 |
#include<bits/stdc++.h> using naamespace std; int main(){ int n; if(n%3==0&&n%5==0){ cout<<"can"; }else{ cout<<"cannut"; } return 0; }
Main.cc:2:7: error: expected nested-name-specifier before 'naamespace'
using naamespace std;
^
Main.cc: In function 'int main()':
Main.cc:6:3: error: 'cout' was not declared in this scope
cout<<"can";
^
Main.cc:6:3: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
from Main.cc:1:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
Main.cc:8:3: error: 'cout' was not declared in this scope
cout<<"cannut";
^
Main.cc:8:3: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
from Main.cc:1:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^