Problem | typoswap |
---|---|
User | Javel17 |
Submission Time | 2024-06-21 12:41:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typoswap.cpp: In function ‘int main()’:
typoswap.cpp:7:18: error: expected ‘;’ before ‘<’ token
7 | for ( int i=0, i< s.length()-1, i++){
| ^
| ;
typoswap.cpp:7:18: error: expected primary-expression before ‘<’ token
typoswap.cpp:7:20: error: ‘s’ was not declared in this scope
7 | for ( int i=0, i< s.length()-1, i++){
| ^
typoswap.cpp:7:37: error: expected ‘;’ before ‘)’ token
7 | for ( int i=0, i< s.length()-1, i++){
| ^
| ;
typoswap.cpp:9:10: error: ‘arr’ was not declared in this scope
9 | cin >> arr[i];
| ^~~
typoswap.cpp:11:10: error: ‘arr’ was not declared in this scope
11 | cout << arr[i];
| ^~~
typoswap.cpp:11:14: error: ‘i’ was not declared in this scope
11 | cout << arr[i];