Borderou de evaluare (job #833518)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Apariții | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 9 sept. 2025 12:14:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
11 | for(int i=0;i<2*n-1;i++)
| ^~~
main.cpp:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
13 | cin>>a;
| ^~~
main.cpp:12:13: warning: unused variable 'a' [-Wunused-variable]
12 | int a;
| ^
main.cpp:13:14: error: 'a' was not declared in this scope
13 | cin>>a;
| ^
main.cpp: At global scope:
main.cpp:16:5: error: 'cout' does not name a type
16 | cout<<sum;
| ^~~~
main.cpp:17:5: error: expected unqualified-id before 'return'
17 | return 0;
| ^~~~~~
main.cpp:18:1: error: expected declaration before '}' token
18 | }
| ^