Borderou de evaluare (job #609874)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cartonaș (clasa a 5-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 12 oct. 2021 14:39:34 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:1: error: 'ifstream' does not name a type
2 | ifstream in("cartonas.in");
| ^~~~~~~~
main.cpp:3:1: error: 'ofstream' does not name a type
3 | ofstream out("cartonas.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'in' was not declared in this scope; did you mean 'i'?
8 | in>>n>>x;
| ^~
| i
main.cpp:29:5: error: 'out' was not declared in this scope
29 | out<<v[1]<<'\n'<<j<<'\n';
| ^~~
main.cpp:50:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
50 | for(i=1;i<=n;i++)
| ^~~
main.cpp:52:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
52 | int ok=0;
| ^~~