Borderou de evaluare (job #2963239)

Utilizator ale336_tAlexandra Toma ale336_t Data 10 ianuarie 2023 16:43:23
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: ISO C++ forbids declaration of 'CAPS' with no type [-fpermissive] 5 | CAPS(string s, string &x){ | ^~~~ main.cpp: In function 'int CAPS(std::string, std::string&)': main.cpp:6:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 6 | for (int i=0; i<s.size(); i+=1){ | ~^~~~~~~~~ main.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^ main.cpp: At global scope: main.cpp:15:1: error: ISO C++ forbids declaration of 'NEXT' with no type [-fpermissive] 15 | NEXT(string &s){ | ^~~~ main.cpp: In function 'int NEXT(std::string&)': main.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type] 19 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?