Borderou de evaluare (job #800155)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bravo, ai şir! (Clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 dec. 2024 18:58:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:24:40: error: stray '#' in program
24 | for(int i=0; i<N; i++) cin >> A[i];#include <bits/stdc++.h>
| ^
main.cpp: In function 'int main()':
main.cpp:24:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
24 | for(int i=0; i<N; i++) cin >> A[i];#include <bits/stdc++.h>
| ^~~
main.cpp:24:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
24 | for(int i=0; i<N; i++) cin >> A[i];#include <bits/stdc++.h>
| ^~~~~~~
main.cpp:24:41: error: 'include' was not declared in this scope
main.cpp:24:50: error: 'bits' was not declared in this scope
24 | for(int i=0; i<N; i++) cin >> A[i];#include <bits/stdc++.h>
| ^~~~
main.cpp:24:55: error: 'stdc' was not declared in this scope; did you mean 'std'?
24 | for(int i=0; i<N; i++) cin >> A[i];#include <bits/stdc++.h>
| ^~~~
| std
main.cpp:25:1: error: expected primary-expression before 'using'
25 | using namespace std;
| ^~~~~
main.cpp:29:27: error: a function-definition is not allowed here before '{' token
29 | ll compute_gcd(ll a, ll b){
| ^
main.cpp:38:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
38 | int main(){
| ^~
main.cpp:38:9: note: remove parentheses to default-initialize a variable
38 | int main(){
| ^~
| --
main.cpp:38:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:38:11: error: a function-definition is not allowed here before '{' token
38 | int main(){
| ^