Borderou de evaluare (job #3222250)
Utilizator | Data | 9 aprilie 2024 16:12:20 | |
---|---|---|---|
Problema | Prime | Status | done |
Runda | arhiva-vianu | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:20: error: expected ';' before '>>' token
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ^~~
| ;
main.cpp:12:21: error: expected primary-expression before '>>' token
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ^~
main.cpp:12:35: error: expected ')' before ';' token
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ~ ^
| )
main.cpp:12:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ^~~
main.cpp:12:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ^~~~
main.cpp:12:47: error: 'n' was not declared in this scope
12 | for (int n, cin >> n; cin >> n; cout << p[n] << endl);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !